<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>权限配置</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>

<body>
	<div>
		<span class="err_msg"><c:out value="${errMsg}" /></span>
	</div>

	<form method="get">
		<table class="input_table" align="center" cellspacing="0"
			cellpadding="0">
			<tr>
				<td class="input_titile_td">用户名：</td>
				<td><c:out value="${email}" /></td>
			</tr>
		</table>
	</form>
	<form action="updUserMerssion.do">
		<div>
			&nbsp;&nbsp; <input type="submit" value="修改权限"/>
		</div>
		<table class="records_table" align="center" cellspacing="0"
			cellpadding="0">
			<tr class="records_table_head">
				<td><input type="checkbox" id="checkAll"
					onclick="if (this.checked) Util.selectAllCheckbox(this.form); else Util.cancelAllCheckbox(this.form); " />
				</td>
				<td>权限编号</td>
				<td>地址</td>
				<td>所属模块</td>
				<td>备注</td>
			</tr>
			<c:forEach items="${record}" var="record">
				<tr class="records_table_record">
					<td><input type="checkbox"
						<c:if test="${record.checked==true}" >checked="checked"</c:if>
						name="updEmails" value="<c:out value='${record.permissionId}' />"
						onclick="Util.verifyCheckAll(this.form, 'checkAll');" /></td>
					<td><c:out value="${record.permissionId}" /></td>
					<td><c:out value="${record.uri}" /></td>
					<td><c:out value="${record.module}" /></td>
					<td><c:out value="${record.comment}" /></td>
				</tr>
			</c:forEach>
		</table>
		<input type="hidden" value="<c:out value='${email}' />" name="email" />
	</form>
</body>
</html>
